import request from '../axios'

/**
 * 用户余额接口
 */
export function balance(data) {
    return request({
        url: 'user/balance',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 设置支付密码
 */
export function setpay_password(data) {
    return request({
        url: 'user/setpay_password',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 验证支付密码
 */
export function yz_pay_password(data) {
    return request({
        url: 'user/yz_pay_password',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 判断用户是否有能力支付
 */
export function bandbank(data) {
    return request({
        url: 'user/bandbank',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}
